using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhang.IDAL.UCenter
{
    /// <summary>
    /// 标签
    /// </summary>
    public interface ILabel
    {
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="model">数据内容</param>
        /// <returns>插入数据ID</returns>
        int Insert(Zhang.Model.UCenter.Label model);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model">数据内容</param>
        /// <returns></returns>
       bool Update(Zhang.Model.UCenter.Label model);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns>影响行数</returns>
        int Delete(int id);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="arrPk">主键列表</param>
        /// <returns>影响行数</returns>
        int DeleteMuch(string[] arrPk);

        /// <summary>
        /// 根据ID查询单个实体
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
       Zhang.Model.UCenter.Label Select(int id);

        /// <summary>
        /// 查询列表
        /// </summary>
        /// <param name="sch">查询参数</param>
        /// <param name="seq">排序字段</param>
        /// <returns></returns>
       List<Zhang.Model.UCenter.Label> SelectList(Zhang.Model.UCenter.LabelSch sch, Model.Sequence seq);

        /// <summary>
        ///  查询列表 - 分页查询
        /// </summary>
        /// <param name="pageIndex">页数</param>
        /// <param name="pageSize">每页条数</param>
        /// <param name="sch">查询参数</param>
        /// <param name="seq">排序</param>
        /// <returns></returns>
       (List<Zhang.Model.UCenter.Label>, int) SelectList(int pageIndex, int pageSize,
            Zhang.Model.UCenter.LabelSch sch, Zhang.Model.Sequence seq);

    }
}
